
def nine():
    for i in range(1, 100):
        for j in range(1, 100):
            print("{} * {} = {}".format(j, i, j*i), end='\t')
        print()


def writeNine():
    with open('nine.html', 'w', encoding='utf-8') as fp:
        fp.write('<div>\n')
        for i in range(1, 100):
            fp.write('<div class="row_line">\n')
            for j in range(1, 100):
                if (j%10) == 0:
                    fp.write('<br>\n')

                print("{} * {} = {}".format(j, i, j * i), end='\t')
                fp.write("<span>{} * {} = {}</span>\n".format(j, i, j * i))
            fp.write('</div>\n')

        fp.write('</div>\n')

writeNine()